//
//  MCNavgationController.h
//  ZFGT
//
//  Created by apple on 2018/1/10.
//  Copyright © 2018年 allyoubank.com. All rights reserved.
//

#import <UIKit/UIKit.h>


/**
 当调用setNavigationBarHidden:animated:时隐藏了NAV
 会加上自定义的NAV，有两种样式

 - DesignNavBackgroundStyle_Default: 背景透明，内容是白色，在baseVC中指定即可
 - DesignNavBackgroundStyle_White: 背景白色，内容是78, 会有分割线
 */
typedef NS_ENUM(NSInteger, DesignNavBackgroundStyle) {
    DesignNavBackgroundStyle_Default = 0,
    DesignNavBackgroundStyle_White = 1,
};

typedef NS_ENUM(NSInteger, BackActionStyle) {
    BackActionStyle_Default = 0,
    BackActionStyle_Root = 1,
};


@interface FLBNavgationController : UINavigationController

@property(nonatomic,strong)UIColor *lineColor;
@property(nonatomic,strong)UIColor *navBarColor;

@property (nonatomic, assign) DesignNavBackgroundStyle navStyle;

@property (nonatomic ,assign) BackActionStyle backStyle;

 ///去掉navigationBar 系统底部横线,并设置是否透明
- (void)hiddenNavgationBarLineImgViewWithTranslucent:(BOOL)translucent;

///新增自定义的avigationBar 系统底部横线
- (void)replaceSystemNavgationBarLine;
/**
 设置导航栏标题 -- 使用于隐藏导航栏的页面，在页面加载之后再设置文字，比如webView加载完之后才设置标题
 
 @param title 标题文字
 */
- (void)setNavigationBarTitle:(NSString *)title;

/// 返回按钮的回调
@property (nonatomic, copy) void (^clickBackItemBlock)(UIViewController *vc);

/// present出来的NAV设置返回按钮
- (void)presentedSetNavigationBar;

/**
 popToRootVC
 */
- (void)goesRootVC;


/**
 present的页面移除返回按钮时 属性设置为YES即可
 */
@property (nonatomic, assign) BOOL removeBackItem;

/**
webView视图内跳转
 */
@property (nonatomic, assign) BOOL isWebView;

- (void)setrightNavBtn:(NSString *)title andRightImage:(NSString *)imageStr
;
@end
